|
Taste of script Tools for working with the script are located in the "Code" tab of the FastReport editor. When switching to this tab, the designer appears as follows: 
In the picture above, the figures denote: 1 – "Code" tab; 2 – script’s editor window; 3 – a dropdown for selecting a language, in which the script is to be written; 4 – debugger’s toolbar: - run report in debugging mode;
- perform the regular code line (Step into);
- interrupt script’s work;
- preview expressions’ evaluation (Evaluate).
5 – bookmarks and breakpoints are displayed in this field; in addition, the lines, possessing the executable code are highlighted there; 6 – you can also use the buttons in the basic toolbar: - cut text;
- copy text;
- paste text;
- undo the previous action.
Below there is the list of the keys, which can be used in the script editor.
| Key |
Meaning |
| Cursor arrows |
Move the cursor |
| PageUp, PageDown |
Go to the previous/next page |
| Ctrl+PageUp |
Go to the beginning of the text |
| Ctrl+PageDown |
Go to the end of the text |
| Home |
Go to the beginning of the line |
| End |
Go to the end of the line |
| Enter |
Go to the next line |
| Delete |
Delete the symbol at cursor’s position; delete the selected text |
| Backspace |
Delete the symbol to the left from the cursor |
| Ctrl+Y |
Delete the current line |
| Ctrl+Z |
Undo last action (up to 32 events) |
| Shift+Cursor arrows |
Select a text block |
| Ctrl+A |
Select the whole text |
| Ctrl+U |
Shift the selected block by 2 symbols to the left |
| Ctrl+I |
Shift the selected block by 2 symbols to the right |
| Ctrl+C, Ctrl+Insert |
Copy the selected block to the clipboard |
| Ctrl+V, Shift+Insert |
Paste the text from the clipboard |
| Ctrl+X, Shift+Delete |
Cut the selected block to the clipboard |
| Ctrl+Shift+<number> |
Set a bookmark with the 0..9 number on the current line |
| Ctrl+<number> |
Jump to the set bookmark |
| Ctrl+F |
Search a line |
| Ctrl+R |
Replace a line |
| F3 |
Repeated search/replacement from the cursor’s position |
| F4 or F5 |
Set the breakpoint and script’s running (Run to cursor) |
| Ctrl+F2 |
Reset the program |
| Ctrl+F7 |
Preview variables’ values (Evaluate) |
| F9 |
Run the script (Run) |
| F7 or F8 |
Execute code line (Step into) |
|